package com.sgb.merchant.view.adapter;

import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.harisucici.jetpackbase.BR;
import com.sgb.link.entity.merchant.PublishIndustryEntity;
import com.sgb.merchant.R;

import java.util.List;

/**
 * @author: 王彬臣
 * @date: 2021/10/15
 * @Description: 惠及配套标签Adapter
 */
public class FacilityTagAdapter extends BaseQuickAdapter<PublishIndustryEntity.ParkLabelsBean, BaseViewHolder> {

    public FacilityTagAdapter(@Nullable @org.jetbrains.annotations.Nullable List<PublishIndustryEntity.ParkLabelsBean> data) {
        super(R.layout.merchant_item_delete_facility,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PublishIndustryEntity.ParkLabelsBean item) {

        helper.setText(R.id.tv_info,item.getLabelName());
        helper.addOnClickListener(R.id.iv_delete);


    }
}
